#include "food.h"
#include <random>
#include <chrono>

Food::Food() : rng(std::chrono::steady_clock::now().time_since_epoch().count()),
    distX(0, 39), distY(0, 29) {
    spawn();
}

void Food::spawn() {
    position = {distX(rng), distY(rng)};
}